package cn.felord.cloud.consumer.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * The interface Foo service.
 *
 * @author Dax
 * @since 13 :26  2019-08-14
 */
@FeignClient(value = "provider-service", fallbackFactory = FooFallbackFactory.class)
public interface FooService {

    /**
     * Foo string.
     *
     * @return the string
     */
    @GetMapping("/foo/api")
    String foo();

}
